package appapi.entity.AppAmg;

import appapi.entity.app.OnsitedetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.List;

@ApiModel(value = "巡检明细")
@Data
public class AppOnsitedetailImgDto {
    @ApiModelProperty(value = "")
    private Long onsiteRecId;

    @ApiModelProperty(value = "")
    private Long onsiteId;

    /**
     * 检测项目
     */
    @ApiModelProperty(value = "检测项目")
    private String onsiteItem;

    /**
     * 0正常 1异常
     */
    @ApiModelProperty(value = "0正常 1异常")
    private Integer onsiteResult;

    @ApiModelProperty(value = "")
    private String auditNote;

    @ApiModelProperty(value = "")
    private String onsiteDesc;

    @ApiModelProperty(value = "")
    private Integer auditState;

    @ApiModelProperty(value = "")
    private Date createTime;

    @ApiModelProperty(value = "")
    private Date updateTime;

//    @ApiModelProperty(value = "")
//    private String imgUrl;
    @ApiModelProperty(value = "转换的图片",required = true)
    private List<String> img;
    public OnsitedetailEntity vo2Entity() {
        OnsitedetailEntity entity = new OnsitedetailEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}
